#pragma once

#include "BasicTypes.h"

#ifdef _DEBUG
	#include <cassert>
	#define ASSERT(expr) assert(expr)
	#define CHECK_PTR(ptr) ASSERT(expr)
#else
	#define ASSERT(expr)
	#define CHECK_PTR(ptr) 
#endif	// _DEBUG

#define DeleteAndSetNULL(ptr) \
	do{ if(ptr) { delete ptr; ptr = NULL; } }while(0)